package com.sumainfor.pc.epc.service.impl.market;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.epc.dao.HousingRepairEvaMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;

/**
 * <p>
 * 查询装修中的房源
 * <p>
 *
 * @author: zhoucong
 * @create: 2019-05-07 11:07
 **/
@Service
public class HousingRepairEvaService implements Serializable {

    @Autowired
    HousingRepairEvaMapper housingRepairEvaMapper;

    public JsonResult getRepHouList() {
        JsonResult result = new JsonResult();
        return result.put(housingRepairEvaMapper.getRepHouList());
    }


    /**
     * 查询房源基础配置
     *
     * @param hId    房源主编号
     * @param hConId 房源配置编号
     * @return
     */
    public JsonResult getHousingConfigList(String hId, String hConId) {
        return JsonResult.success(housingRepairEvaMapper.getHousingConfigList(hId, hConId));
    }

}
